package cn.kgc.service;

import cn.kgc.pojo.Account;

import java.sql.SQLException;

/**
 * 账户持久成接口
 */
public interface AccountService {
    /**
     * 根据账号查询账户
     */
    Account findAccountByNum(String accountNum) throws SQLException;

    /**
     * 更新账户
     */
    Integer modifyAccount(Account account) throws SQLException;

    void transfer(String sourceNum,String desNum,Float money) throws SQLException;
}

